package com.black.system.domain.req.system.add;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
@ApiModel(value = "公告添加请求模型")
public class SysNoticeAddReq {
    @ApiModelProperty(value = "公告标题", required = true)
    @NotBlank(message = "{sysnotice.not.noticeTitle}")
    private String noticeTitle;

    @ApiModelProperty(value = "公告类型（1通知 2公告）", required = true)
    @NotBlank(message = "{sysnotice.not.noticeType}")
    private String noticeType;

    @ApiModelProperty(value = "公告内容", required = true)
    @NotBlank(message = "{sysnotice.not.noticeContent}")
    private String noticeContent;

    @ApiModelProperty(value = "公告状态（0正常 1关闭）", required = true)
    @NotBlank(message = "{sysnotice.not.status}")
    private String status;
}
